package com.banch.cloud.payment.service;

import com.banch.cloud.common.entity.Payment;
import org.apache.ibatis.annotations.Param;

/**
 * payment service interface
 *
 * @author banch
 * @version 1.0
 * @date 2020/5/5
 */
public interface PaymentService {

    /**
     * 插入
     *
     * @param payment Payment实体
     * @return
     * @author banch
     * @date 2020/5/5
     * @throw
     **/
    public int create(Payment payment);

    /**
     * 根据id获取
     *
     * @param id id
     * @return
     * @author banch
     * @date 2020/5/5
     * @throw
     **/
    public Payment getById(@Param("id") Long id);

}